<script>
export default {
  name: "Home",
  mounted() {
    console.log('home被创建了',this)
    window.hRoute = this.$route
    window.hRouter = this.$router
  },
  beforeDestroy() {
    console.log('home被销毁了')
  }
}
</script>

<template>
  <div>
    <h2>Home组件内容</h2>
    <div>
      <ul class="nav nav-tabs">
        <li>
          <router-link to="/home/news" active-class="active">news</router-link>
        </li>
        <li>
          <router-link to="/home/msg" active-class="active">message</router-link>
        </li>
      </ul>
      <router-view/>
    </div>
  </div>
</template>

<style scoped>

</style>